package com.youku.ast;

public class AssignAst extends StatementAst {

	public AssignAst(Ast var, Ast exp) {
		super(var, exp);
	}

	public Ast getVar() {
		return getChild(0);
	}

	public String varValue() {
		return getVar().getTokenValue();
	}

	public Ast getExp() {
		return getChild(1);
	}

	@Override
	public String toString() {
		return getVar() + "= (" + getExp() + ")";
	}

}
